package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;

import java.util.List;
import java.util.Map;

public interface MenuService {
    public List<Map<String, Object>> findMenuparentMenuId();

    public void add(Menu menu);

    List<Menu> findAll();

    public PageResult pageQuery(QueryPageBean queryPageBean);

    public Menu findById(Integer id);

    public List<Integer> findParentIdsByMenuId(Integer id);

    public List<Map<String, Object>> findMenuIdAndDisabled(Integer id);

    public void edit(Menu menu);

    public void delete(Integer id);
}
